package com.example.cggame;

import java.util.Random;

import android.graphics.Paint;

public class Ball {
	
	Random rand = new Random();
	
	//The ball
	final int ballSize = 10;
	int ballX;
	int ballY = 0;
	int ballVelocityX = 5; 	
	int ballVelocityY = 5;
	Paint ballColor;

	public Ball(int ballVelocityX, int ballVelocityY, int screenWidth){
		ballX = rand.nextInt(screenWidth);
		this.ballVelocityX = ballVelocityX;
		this.ballVelocityY = ballVelocityY;
	}
	
	 public int getBallSize() {
		return ballSize;
	}

	
	public int getBallX() {
		return ballX;
	}

	public void setBallX(int ballX) {
		this.ballX = ballX;
	}

	public int getBallVelocityX() {
		return ballVelocityX;
	}

	public void setBallVelocityX(int ballVelocityX) {
		this.ballVelocityX = ballVelocityX;
	}

	public int getBallVelocityY() {
		return ballVelocityY;
	}

	public void setBallVelocityY(int ballVelocityY) {
		this.ballVelocityY = ballVelocityY;
	}

	public int getBallY() {
		return ballY;
	}

	public void setBallY(int ballY) {
		this.ballY = ballY;
	}
	
	public void setBallColor(Paint ballColor) {
		this.ballColor = ballColor;
	}

	public Paint getBallColor() {
		return ballColor;
	}
	

}
